/*+***********************************
Filename: vectors.s
Description: reset entry.
Modification:
2023.04.21 hzheng creation
************************************-*/
     
## reset entry section
##
    .section .text.entry
    .global _start
    .type _start, @function
_start:
## set led on
    lui  a5,0x50006
    li      s0,4
    sh      s0,4(a5)   #GPIO_DIR=0x50006004
    li      s0,4       #0 or 4
    sh      s0,0(a5)   #GPIO_ODR=0x50006000

## call main
    la     t0, main
    jalr   t0
    
## dead_loop
    j .  


